import { defHttp } from '/@/utils/http/axios';

enum Api {
  gettaskList = '/admin-api/bpm/task/list-by-process-instance-id',
  gettaskTodoList = '/admin-api/bpm/task/todo-page',
  gettaskCompletedList = '/admin-api/bpm/task/done-page',
}

/**
 * @description: 获用户
 */
export const taskList = (params: any) => {
  return defHttp.get<any>({ url: Api.gettaskList, params });
};
export const taskTodoList = (params: any) => {
  return defHttp.get<any>({ url: Api.gettaskTodoList, params });
};
export const taskCompletedList = (params: any) => {
  return defHttp.get<any>({ url: Api.gettaskCompletedList, params });
};